
package pratica04;

/**
 *
 * @author a100101
 */
public class Pratica04 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        parteSanduiche sanduba = new Sanduiche(4.90, "X-Tudo");
        sanduba = new Ovo(sanduba, 50, "Ovo do mau");
        sanduba = new Salsicha(sanduba, 70, "Nervosa");
        sanduba.getDescricao();
        System.out.println("Preco: "+sanduba.getPreco());
    }
}
